package com.lian.service.impl;

import com.lian.pojo.Type;
import com.lian.mapper.TypeMapper;
import com.lian.service.TypeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lsx
 * @since 2024-05-07
 */
@Service
public class TypeServiceImpl extends ServiceImpl<TypeMapper, Type> implements TypeService {
    @Autowired
    TypeMapper typeMapper;
    @Override
    public List<Type> getTypeTree() {
        List<Type> list=typeMapper.getTypeTree();
        return list;

    }
}
